package com.zxyankh.common.dto;

import com.alibaba.fastjson.JSON;

/**
 * @author ankh
 * @since 31.10.2017
 */
public class ResponseDto {
    private int code;
    private String data;

    public ResponseDto() {
    }

    public ResponseDto(int code, String data) {
        this.code = code;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
